<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FIRST LEGO League na Slovensku - FLL na Slovensku</title>
<base href="http://www.fll.sk/" />
<link href="http://davinci.fmph.uniba.sk/~molek3/tis/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

	<?php
		if ($this->session->userdata('logged_in') == 0 ) {
		
			redirect('projekt');
		
		}
	?>
	<h2>Letná liga tímov FLL</h2>
	<div id = 'vitaj'>
	<?php
	
		echo 'Vítaj, ';
		echo "<strong>";
		echo $this->session->userdata['name'];
		echo "</strong> !";
	
	?>
	</div>
	
	<h3>Zadania</h3>
	
	<?php foreach ($themes->result() as $obj) : ?>
		<li>
		
			<div class="TopTopics">
				<?php
				/*
				$data['id']= $obj->id;
				$data['name']= $obj->name;
				$imp = implode(" ",$data);
				print_r($imp);
				
				echo form_open("projekt/komenty/{$imp}");	// pri vybratí témy posielam do funkcie tid, nech viem ,ktoré komentáre zobraziť a aj meno témy
				echo form_submit('submit', "$obj->content ");
				*/
				echo $obj->name;
				/*
				echo form_close();
			
				if ($this->session->userdata['type'] == 1) {	// opäť podmienka tlačítko ONLY FOR ADMIN
					?>
					<div class ="VymazBut">
						<?php
						echo form_open("projekt/deltheme/{$obj->id}"); //  tato funkcia vymaze zadanie s danym TID
						echo form_submit('submit', "X");
						echo form_close();
						?>
					</div>
					<?php
				}

				*/
				?>
			</div>
		</li>	
	
	<div id = 'logout_butt'>
	<?php
		echo form_open('auth/logout');
		echo form_submit('submit', 'Odhlásiť');
		echo form_close();
	?>
	</div>
	
</body>
</html>